package com.fjl.utils;

import org.springframework.stereotype.Component;

import java.util.UUID;


@Component
public class IdGenerator {

    public static void main(String[] args) {
        System.out.println(String.valueOf(UUID.randomUUID().toString()));
    }
    // 生成唯一ID
    public String nextID() {
        return UUID.randomUUID().toString();
    }

}
